package com.maduar.mybatis.demo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

/**
 * Description:
 *
 * @author maduar maduar@163.com
 * @date 2021-04-10 18:14
 */
@Data
@TableName(value = "user")
public class UserEntity {

    @TableId(value = "id", type = IdType.ASSIGN_ID)
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    private Long id;

    private String name;
    private Integer age;
    private String email;
}
